<?php
namespace Home\Server;
/*
 * Created by tiny
 * User: tiny
 * Date: 16/06/24
 * E-mail: mountaingiant@163.com
 *
 * */
class IndexServer{
    public static function getVersion(){
        $ret = array();
        $ret['php_version'] = PHP_VERSION;
        $model = new \Home\Model\IndexModel();
        $ret['mysql_version'] = $model->getVersion();
        $ret['mysql_version'] = $ret['mysql_version'][0]['version'];
        return $ret;
    }
}